home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / Apple II / Essentials / APW Interfaces / AInclude / E16.Window < prev    next >
Encoding:
Text File  |  1993-06-15  |  7.5 KB  |  231 lines  |  [TEXT/MPS ]

  1. ; File:  E16.Window
  2. ;
  3. ;
  4. ; Copyright Apple Computer, Inc. 1986-93
  5. ; All Rights Reserved
  6. ;
  7. ;
  8. paramLenErr GEQU $0E01 ; first word of parameter list is the wrong size
  9. allocateErr GEQU $0E02 ; unable to allocate window record
  10. taskMaskErr GEQU $0E03 ; reserved bits are not clear in wmTaskMask
  11. compileTooLarge GEQU $0E04 ; Compiled text is larger than 64 KB
  12. cantUpdateErr GEQU $0E05 ;window couldn't be updated
  13. wNoConstraint GEQU $0000 ; No constraint on movement.
  14. wHAxisOnly GEQU $0001 ; Horizontal axis only.
  15. wVAxisOnly GEQU $0002 ; Vertical axis only.
  16. FromDesk GEQU $00 ; Subtract region from desktop
  17. ToDesk GEQU $1 ; Add region to desktop
  18. GetDesktop GEQU $2 ; Get Handle of Desktop region
  19. SetDesktop GEQU $3 ; Set Handle of Desktop region
  20. GetDeskPat GEQU $4 ; Address of  pattern or drawing routine
  21. SetDeskPat GEQU $5 ; Change Address of  pattern or drawing routine
  22. GetVisDesktop GEQU $6 ; Get destop region less visible windows.
  23. BackGroundRgn GEQU $7 ; For drawing directly on desktop.
  24. CheckForNewDeskMsg GEQU $8 ; Force rechecking message #2
  25. toBottom GEQU $FFFFFFFE ; To send window to bottom.
  26. topMost GEQU $FFFFFFFF ; To make window top.
  27. bottomMost GEQU $0000 ; To make window bottom.
  28. tmMenuKey GEQU $00000001
  29. tmUpdate GEQU $00000002
  30. tmFindW GEQU $00000004
  31. tmMenuSel GEQU $0008
  32. tmOpenNDA GEQU $0010
  33. tmSysClick GEQU $0020
  34. tmDragW GEQU $0040
  35. tmContent GEQU $0080
  36. tmClose GEQU $0100
  37. tmZoom GEQU $0200
  38. tmGrow GEQU $0400
  39. tmScroll GEQU $0800
  40. tmSpecial GEQU $1000
  41. tmCRedraw GEQU $2000
  42. tmInactive GEQU $4000
  43. tmInfo GEQU $8000
  44. tmContentControls GEQU $00010000
  45. tmControlKey GEQU $00020000
  46. tmControlMenu GEQU $00040000
  47. tmMultiClick GEQU $00080000
  48. tmIdleEvents GEQU $00100000
  49. wNoHit GEQU $0000 ; retained for back compatibility. 
  50. inNull GEQU $0000 ; retained for back compatibility
  51. inKey GEQU $0003 ; retained for back compatibility
  52. inButtDwn GEQU $0001 ; retained for back compatibility
  53. inUpdate GEQU $0006 ; retained for back compatibility
  54. wInDesk GEQU $0010 ; On Desktop
  55. wInMenuBar GEQU $0011 ; On system menu bar
  56. wClickCalled GEQU $0012 ; system click called
  57. wInContent GEQU $0013 ; In content region
  58. wInDrag GEQU $0014 ; In drag region
  59. wInGrow GEQU $0015 ; In grow region, active window only
  60. wInGoAway GEQU $0016 ; In go-away region, active window only
  61. wInZoom GEQU $0017 ; In zoom region, active window only
  62. wInInfo GEQU $0018 ; In information bar
  63. wInSpecial GEQU $0019 ; Item ID selected was 250 - 255
  64. wInDeskItem GEQU $001A ; Item ID selected was 1 - 249
  65. wInFrame GEQU $1B ; in Frame, but not on anything else
  66. wInactMenu GEQU $1C ; 'selection' of inactive menu item
  67. wClosedNDA GEQU $001D ; desk accessory closed
  68. wCalledSysEdit GEQU $001E ; inactive menu item selected
  69. wInSysWindow GEQU $8000 ; hi bit set for system windows
  70. wDraw GEQU $00 ; Draw window frame command.
  71. wHit GEQU $01 ; Hit test command.
  72. wCalcRgns GEQU $02 ; Compute regions command.
  73. wNew GEQU $03 ; Initialization command.
  74. wDispose GEQU $04 ; Dispose command.
  75. wGetDrag GEQU 5    ; Return address of outline drawing handler
  76. wGrowFrame GEQU 6    ; Draw outline of window being resized
  77. wRecSize GEQU 7    ; Return size of additional space neeed in the windrec
  78. wPos GEQU 8    ; Return RECT that is the window's portRect
  79. wBehind GEQU 9    ; Return where the window should be placed in the list
  80. wCallDefProc GEQU 10    ; Generic call to the defproc
  81. fHilited GEQU $0001 ; Window is highlighted.
  82. fZoomed GEQU $0002 ; Window is zoomed.
  83. fAllocated GEQU $0004 ; Window record was allocated.
  84. fCtlTie GEQU $0008 ; Window state tied to controls.
  85. fInfo GEQU $0010 ; Window has an information bar.
  86. fVis GEQU $0020 ; Window is visible.
  87. fQContent GEQU $0040
  88. fMove GEQU $0080 ; Window is movable.
  89. fZoom GEQU $0100 ; Window is zoomable.
  90. fFlex GEQU $0200
  91. fGrow GEQU $0400 ; Window has grow box.
  92. fBScroll GEQU $0800 ; Window has horizontal scroll bar.
  93. fRScroll GEQU $1000 ; Window has vertical scroll bar.
  94. fAlert GEQU $2000
  95. fClose GEQU $4000 ; Window has a close box.
  96. fTitle GEQU $8000 ; Window has a title bar.
  97. windSize GEQU $00D4 ; Size of WindRec.
  98. wmTaskRecSize GEQU $002E ; Size of WmTaskRec.
  99. wTrackZoom GEQU $001F
  100. wHitFrame GEQU $0020
  101. wInControl GEQU $0021
  102. wInControlMenu GEQU $0022
  103. ; offset constants for WindColor
  104. oframeColor GEQU 0
  105. otitleColor GEQU 2
  106. otBarColor GEQU 4
  107. ogrowColor GEQU 6
  108. oinfoColor GEQU 8
  109. ; offset constants for WindRec
  110. ;owNext GEQU 0    <- not included in record returned by toolbox calls
  111. oport GEQU 0  ; Window's port
  112. owDefProc GEQU oport+170
  113. owrRefCon GEQU owDefProc+4
  114. owContDraw GEQU owrRefCon+4
  115. owReserved GEQU owContDraw+4  ; Space for future expansion
  116. owStrucRgn GEQU owReserved+4  ; Region of frame plus content.
  117. owContRgn GEQU owStrucRgn+4  ; Content region.
  118. owUpdateRgn GEQU owContRgn+4  ; Update region.
  119. owControls GEQU owUpdateRgn+4  ; Window's control list.
  120. owFrameCtrls GEQU owControls+4  ; Window frame's control list.
  121. owFrame GEQU owFrameCtrls+4
  122. ; offset constants for ParamList
  123. oparamLength GEQU 0  ; Parameter to NewWindow. 
  124. owFrameBits GEQU 2  ; Parameter to NewWindow.
  125. owTitle GEQU 4  ; Parameter to NewWindow.
  126. owRefCon GEQU 8  ; Parameter to NewWindow.
  127. owZoom GEQU 12  ; Parameter to NewWindow.
  128. owColor GEQU 20  ; Parameter to NewWindow.
  129. owYOrigin GEQU 24  ; Parameter to NewWindow.
  130. owXOrigin GEQU 26  ; Parameter to NewWindow.
  131. owDataH GEQU 28  ; Parameter to NewWindow.
  132. owDataW GEQU 30  ; Parameter to NewWindow.
  133. owMaxH GEQU 32  ; Parameter to NewWindow.
  134. owMaxW GEQU 34  ; Parameter to NewWindow.
  135. owScrollVer GEQU 36  ; Parameter to NewWindow.
  136. owScrollHor GEQU 38  ; Parameter to NewWindow.
  137. owPageVer GEQU 40  ; Parameter to NewWindow.
  138. owPageHor GEQU 42  ; Parameter to NewWindow.
  139. owInfoRefCon GEQU 44  ; Parameter to NewWindow.
  140. owInfoHeight GEQU 48  ; height of information bar
  141. owFrameDefProc GEQU 50  ; Parameter to NewWindow.
  142. owInfoDefProc GEQU 54  ; Parameter to NewWindow.
  143. owContDefProc GEQU 58  ; Parameter to NewWindow.
  144. owPosition GEQU 62  ; Parameter to NewWindow.
  145. owPlane GEQU 70  ; Parameter to NewWindow.
  146. owStorage GEQU 74  ; Parameter to NewWindow.
  147. ; offset constants for DeskMessageRecord
  148. odmreserved GEQU 0
  149. odmmessageType GEQU 4
  150. odmdrawType GEQU 6
  151.  
  152. ; DoModalWindow flag values
  153. mwMovable GEQU $8000
  154. mwUpdateAll GEQU $4000
  155. mwDeskAcc GEQU $0010
  156. mwIBeam GEQU $0008
  157. mwMenuKey GEQU $0004
  158. mwMenuSelect GEQU $0002
  159. mwNoScrapForLE GEQU $0001
  160.  
  161. ; UpdateWindow flag values
  162. uwBackground GEQU $8000
  163. uwGSOSnotAvail GEQU $4000
  164.  
  165. ; HandleDiskInsert flag values (bit flags)
  166. hdiScan GEQU $8000
  167. hdiHandle GEQU $4000
  168. hdiUpdate GEQU $2000
  169. hdiReportEjects GEQU $1000
  170. hdiNoDelay GEQU $0800
  171. hdiDupDisk GEQU $0400
  172. hdiCheckTapeDrives GEQU $0200
  173. hdiUnreadable GEQU $0100
  174. hdiMarkOffline GEQU $0001
  175.  
  176. ; HandleDiskInsert result flag values (bit flags)
  177. hdiFormatted GEQU $0002
  178. hdiEjection GEQU $0001
  179.  
  180. ; constants for AlertWindow alertFlags
  181. awCString GEQU $0000
  182. awPString GEQU $0001
  183. awPointer GEQU $0000
  184. awHandle GEQU $0002
  185. awResource GEQU $0004
  186. awTextFullWidth GEQU $0008
  187. awForceBeep GEQU $0010
  188. awButtonLayout GEQU $0020
  189. awNoDevScan GEQU $0040
  190. awNoDisposeRes GEQU $0080
  191. awWatchForDisk GEQU $0100
  192. awIconIsResource GEQU $0200
  193. awFullColor GEQU $0400
  194.  
  195. ; custom defproc dRequest codes (from TN #42)
  196. wSetOrgMask GEQU 0
  197. wSetMaxGrow GEQU 1
  198. wSetScroll GEQU 2
  199. wSetPage GEQU 3
  200. wSetInfoRefCon GEQU 4
  201. wSetInfoDraw GEQU 5
  202. wSetOrigin GEQU 6
  203. wSetDataSize GEQU 7
  204. wSetZoomRect GEQU 8
  205. wSetTitle GEQU 9
  206. wSetColorTable GEQU 10
  207. wSetFrameFlag GEQU 11
  208. wGetOrgMask GEQU 12
  209. wGetMaxGrow GEQU 13
  210. wGetScroll GEQU 14
  211. wGetPage GEQU 15
  212. wGetInfoRefCon GEQU 16
  213. wGetInfoDraw GEQU 17
  214. wGetOrigin GEQU 18
  215. wGetDataSize GEQU 19
  216. wGetZoomRect GEQU 20
  217. wGetTitle GEQU 21
  218. wGetColorTable GEQU 22
  219. wGetFrameFlag GEQU 23
  220. wGetInfoRect GEQU 24
  221. wGetDrawInfo GEQU 25
  222. wGetStartInfoDraw GEQU 26
  223. wGetEndInfoDraw GEQU 27
  224. wZoomWindow GEQU 28
  225. wStartDrawing GEQU 29
  226. wStartMove GEQU 30
  227. wStartGrow GEQU 31
  228. wNewSize GEQU 32
  229. wTask GEQU 33
  230.  
  231.